﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CodeCube.Common;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace CodeCube.Api.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [Produces("application/json")]
    [ApiExplorerSettings(GroupName = "CodeCube")]
    public class ToolsController : ControllerBase
    {
        [HttpGet]
        public string GetNewGuid()
        {
            return Guid.NewGuid().ToString();
        }
        [HttpGet]
        public string GetMD5(string str)
        {
            return Md5Crypt.Encrypt(str);
        }
    }
}